﻿<html DIR="LTR" xmlns:tool="http://www.microsoft.com/tooltip" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ddue="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:MSHelp="http://msdn.microsoft.com/mshelp">
  <head>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8" />
    <META NAME="save" CONTENT="history" />
    <title>prepareStatement Method (SQLServerConnection)</title>
    
    <link rel="stylesheet" type="text/css" href="../local/Classic.css">
      
    </link>
    
    <script src="../local/script.js">
      
    </script><script src="../local/script_main.js">&amp;nbsp;</script>
  </head>
  <body>
    <!--Topic built:12/06/2007 20:50:20-->

    
    
    
    
    
    
    
    
    
    <div id="header">
      <table width="100%" id="topTable"><tr>
          <td align="left">
            <span id="headerBold">prepareStatement Method (SQLServerConnection)</span>
          </td>
          <td align="right">
            
          </td>
        </tr></table>
      
      
      
    </div>
    <div id="mainSection">
      
        
        
		<font color="DarkGray"><!-- [This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]<br/>[Documentation built on $$TIMESTAMP$$]  --> </font> <p /> <p />
	
        <div id="introductionSection" class="section">
    <p>Creates a <a href="a8481c06-fbba-432b-8c69-4f4619c20ad4.htm">SQLServerPreparedStatement</a> object for sending parameterized SQL statements to the database. </p>
  </div><h1 class="heading">Overload List</h1><div id="sectionSection0" class="section"><content xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5">
      <table width="100%" cellspacing="0" cellpadding="0" border="1" style="background-color: #CCCCCC;" xmlns=""><tr>
            <th>
              Name
            </th>
            <th>
              Description
            </th>
          </tr><tr>
          <td>
            <p>
              <a href="e825765c-eb55-4800-951b-f3495da36641.htm">prepareStatement (java.lang.String)</a>
            </p>
          </td>
          <td>
            <p>Creates a <a href="a8481c06-fbba-432b-8c69-4f4619c20ad4.htm">SQLServerPreparedStatement</a> object for sending parameterized SQL statements to the database.</p>
          </td>
        </tr><tr>
          <td>
            <p>
              <a href="4504cd55-81fd-4783-bcb0-1efb1938fdd5.htm">prepareStatement (java.lang.String, int)</a>
            </p>
          </td>
          <td>
            <p>Creates a <a href="a8481c06-fbba-432b-8c69-4f4619c20ad4.htm">SQLServerPreparedStatement</a> object for sending parameterized SQL statements to the database, and has the capability to retrieve auto-generated keys.</p>
          </td>
        </tr><tr>
          <td>
            <p>
              <a href="72b5c4a5-1382-4b2c-80a0-47c97c5f52d3.htm">prepareStatement (java.lang.String, int[])</a>
            </p>
          </td>
          <td>
            <p>Creates a <a href="a8481c06-fbba-432b-8c69-4f4619c20ad4.htm">SQLServerPreparedStatement</a> object for sending parameterized SQL statements to the database, and that is capable of returning the auto-generated keys that are designated by the given array.</p>
          </td>
        </tr><tr>
          <td>
            <p>
              <a href="5bb96dbe-f673-41b5-911b-8f661cca071a.htm">prepareStatement (java.lang.String, int, int)</a>
            </p>
          </td>
          <td>
            <p>Creates a <a href="a8481c06-fbba-432b-8c69-4f4619c20ad4.htm">SQLServerPreparedStatement</a> object that generates <a href="eaffcff1-286c-459f-83da-3150778480c9.htm">SQLServerResultSet</a> objects with the given type and concurrency.</p>
          </td>
        </tr><tr>
          <td>
            <p>
              <a href="b78d2192-f315-4c45-9051-c77059e2c3f4.htm">prepareStatement (java.lang.String, int, int, int)</a>
            </p>
          </td>
          <td>
            <p>Creates a <a href="a8481c06-fbba-432b-8c69-4f4619c20ad4.htm">SQLServerPreparedStatement</a> object that generates <a href="eaffcff1-286c-459f-83da-3150778480c9.htm">SQLServerResultSet</a> objects with the given type, concurrency, and holdability.</p>
          </td>
        </tr><tr>
          <td>
            <p>
              <a href="e0db2871-3a5f-4fcc-af61-92333042dcd1.htm">prepareStatement (java.lang.String, java.lang.String[])</a>
            </p>
          </td>
          <td>
            <p>Creates a <a href="a8481c06-fbba-432b-8c69-4f4619c20ad4.htm">SQLServerPreparedStatement</a> object for sending parameterized SQL statements to the database.</p>
          </td>
        </tr></table>
    </content></div><span id="seeAlsoSpan"><h1 class="heading">另请参见</h1></span><div id="seeAlsoSection" class="section" name="collapseableSection"><a href="937292a6-1525-423e-a2b2-a18fd34c2893.htm">SQLServerConnection Class</a><br /><a href="c3db6be0-9e2b-4408-ab22-b6ecfc42961e.htm">SQLServerConnection Methods</a><br /><a href="3115a533-756b-4c78-aee9-4ba7253c85e0.htm">SQLServerConnection Members</a><br /><br />
		
		<b>
			
			
		</b>
	</div><!--[if gte IE 5]>
			<tool:tip element="seeAlsoToolTip" avoidmouse="false"/><tool:tip element="languageFilterToolTip" avoidmouse="false"/><tool:tip element="roleInfoSpan" avoidmouse="false"/>
		<![endif]-->
      <div id="footer" class="section">
        
		<hr />  <span id="fb" class="feedbackcss"> </span> 
		<a href="9bad553b-9e70-4696-8499-2e35f772a1e0.htm">
			
			© 2007 Microsoft Corporation。保留所有权利。
		</a>
 	
	
      </div>
    </div>
  </body>
</html>